package com.yict.common.util;

import com.yict.common.Constants;

public class EqualUtil {

	public static boolean isYes(Integer value) {

		return NumberUtil.equals(value, Constants.YES);
	}

	public static boolean isNo(Integer value) {
		return !isYes(value);
	}

	public static boolean isYes(String value) {
		if (value == null) {
			return false;
		}

		return Constants.YES_S.equals(value);
	}

	public static boolean isNo(String value) {
		return !isYes(value);
	}
}
